public class Cat extends Animal{
    private String meat;

    public Cat(){}
    public Cat(String species,String color,String character,int age,String meat){
        super(species, color, character, age);
        this.meat = meat;
    }

    public void setmeat(String meat){
        this.meat = meat;
    }
    public String getmeat(){
        return meat;
    }

    @Override
    public void action()
    {
        System.out.println("Catching mice.");
    }

    public void show()
    {
        System.out.println("物种：" + this.getspecies());
        System.out.println("体色：" + this.getcolor());
        System.out.println("性格：" + this.getcharacter());
        System.out.println("年龄：" + this.getage());
        System.out.println("爱吃" + this.getmeat());
    }
}
